<nosession name="mid">
    <div class="pure-menu pure-menu-open">
        <ul>
            <li class="pure-menu-selected">
                <a href="{:U('w3g/Public/home')}">
                    <div class="sidebar-ico sidebar-home"></div>
                    <div>广场</div>
                </a>
            </li>
            <li>
                <a href="{:U('w3g/Public/login')}">
                    <div class="sidebar-ico sidebar-login"></div>
                    <div>登录</div>
                </a>
            </li>
            <li>
                <a href="{:U('w3g/Public/register')}">
                    <div class="sidebar-ico sidebar-register"></div>
                    <div>注册帐号</div>
                </a>
            </li>
            <li>
                <a href="{:U('w3g/Public/about')}">
                    <div class="sidebar-ico sidebar-about"></div>
                    <div>关于我们</div>
                </a>
            </li>
        </ul>
    </div>
</nosession>
<session name="mid">
{:W('UserInformation', array('uid'=>$mid, 'tpl'=>'w3gTop', 'isReturn'=>$isReturn))}
    <div class="pure-menu pure-menu-open">
        <ul>
            <li <php>if($_GET['mod']=='Public' && $_GET['act'] == 'home'){</php>class="pure-menu-selected"<php>}</php>>
                <a href="{:U('w3g/Public/home')}">
                    <div class="sidebar-ico sidebar-home"></div>
                    <div>广场</div>
                </a>
            </li>
            <li <php>if($_GET['mod']=='Index' && ($_GET['act'] == 'all' || $_GET['act'] == 'weibo')){</php>class="pure-menu-selected"<php>}</php>>
                <a href="{:U('w3g/Index/index')}">
                    <div class="sidebar-ico sidebar-weibo"></div>
                    <div>朋友圈</div>
                </a>
            </li>
            <li <php>if($_GET['mod']=='Channel'){</php>class="pure-menu-selected"<php>}</php>>
                <a href="{:U('w3g/Channel/index')}">
                    <div class="sidebar-ico sidebar-channel"></div>
                    <div>频道</div>
                </a>
            </li>
            <li <php>if($_GET['mod']=='Weiba'){</php>class="pure-menu-selected"<php>}</php>>
                <a href="{:U('w3g/Weiba/index')}">
                    <div class="sidebar-ico sidebar-weiba"></div>
                    <div>微吧</div>
                </a>
            </li>
            <li <php>if($_GET['mod']=='People'){</php>class="pure-menu-selected"<php>}</php>>
            <a href="{:U('w3g/People/index')}">
                <div class="sidebar-ico sidebar-people"></div>
                <div>找伙伴</div>
            </a>
            </li>
            <li <php>if($_GET['act']=='discover'){</php>class="pure-menu-selected"<php>}</php>>
            <a href="{:U('w3g/Public/discover')}">
                <div class="sidebar-ico sidebar-discover"></div>
                <div>发现</div>
            </a>
            </li>
            <li <php>if($_GET['act']=='sign_in'){</php>class="pure-menu-selected"<php>}</php>>
                <a href="{:U('w3g/Public/sign_in')}">
                    <div class="sidebar-ico sidebar-signin"></div>
                    <div>签到</div>
                </a>
            </li>
            <li <php>if($_GET['act']=='msgbox'){</php>class="pure-menu-selected"<php>}</php>>
                <a href="{:U('w3g/Index/msgbox')}">
                    <div class="sidebar-ico sidebar-message"></div>
                    <div class="sidebar-tips" id="messageSidr">消息<i class="num"></i></div>
                </a>
            </li>
            <li <php>if($_GET['mod']=='Setting'){</php>class="pure-menu-selected"<php>}</php>>
                <a href="{:U('w3g/Setting/index')}">
                    <div class="sidebar-ico sidebar-setting"></div>
                    <div>设置</div>
                </a>
            </li>
            <li>
                <a href="{:U('w3g/Public/log_out')}">
                    <div class="sidebar-ico sidebar-logout"></div>
                    <div>退出</div>
                </a>
            </li>
        </ul>
    </div>
</session>